import java.util.Scanner;

public class Textq {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入空心菱形的边长：");
        int Side_length = scanner.nextInt();

        for (int i = 0; i < (2 * Side_length); i++) {      //10竖排
            if (i <= 5) {                   //上半个三角形
                for (int j = Side_length-i; j > 0; j--) {
                    System.out.print(" ");
                }
                for (int k = 0; k < i; k++) {
                    if (k == 0 | k == i-1) {        //两边的框，输出“* ”
                        System.out.print("* ");
                    }else{
                        System.out.print("  ");    //中间剩下的部分输出空格
                    }
                }
            }else{
                for (int j = 0; j < i-Side_length; j++) {     //此时前边空格为上少下多，正好为j-5
                    System.out.print(" ");
                }
                for (int k =(2 * Side_length) - i; k > 0; k--) {  //10-i为有几列
                    if (k == 1 | k == (2 * Side_length) - i) {
                        System.out.print("* ");
                    }else{                          //中间部分输出空格
                        System.out.print("  ");
                    }
                }
            }
            System.out.println(" ");
        }
    }
}
//打印菱形，用户输入菱形边长，用*打印出空心菱形。